package com.yuchting.dinneronline.client;

import com.google.gwt.user.client.rpc.AsyncCallback;

public interface MainServiceAsync {

	public void logonServer(String _name,String _pass,AsyncCallback<String> _callback)throws Exception;
	public void changePassword(String _name,String _orgPass,String _newPass,AsyncCallback<String> _callback)throws Exception;
	
	public void getConfig(AsyncCallback<String> _callback)throws Exception;
	public void setConfig(String _configJSON,AsyncCallback<String> _callback)throws Exception;
	
	public void getCurrOrderList(String _name,AsyncCallback<String> _callback)throws Exception;
	public void getFormerOrderList(String _name,AsyncCallback<String> _callback)throws Exception;
	public void getCurrDinnerList(AsyncCallback<String> _callback)throws Exception;
		
	public void addOrder(String _username,String _dinner,AsyncCallback<String> _callback)throws Exception;
	public void delOrder(String _username,long _orderTime,AsyncCallback<String> _callback)throws Exception;
	
	public void delDinner(String _name,AsyncCallback<String> _callback)throws Exception;
	public void addDinner(String _dinnerJSON,AsyncCallback<String> _callback)throws Exception;
	public void modifyDinner(String _name,String _dinnerJSON,AsyncCallback<String> _callback)throws Exception;
	
	public void getCurrUserList(AsyncCallback<String> _callback)throws Exception;
	public void delUser(String _username,AsyncCallback<String> _callback)throws Exception;
	public void addUser(String _userJSON,AsyncCallback<String> _callback)throws Exception;
	public void modifyUser(String _userJSON,AsyncCallback<String> _callback)throws Exception;	

	public void getCurrOrderOutList(AsyncCallback<String> _callback)throws Exception;
	public void checkOrderOutList(long _time,AsyncCallback<String> _callback)throws Exception;
	
	public void commentOrder(String _user,String _commnet,byte[] _rank,long _orderTime,AsyncCallback<String> _callback)throws Exception;
}
